package aiku.numericalcontroloa.Mapper;

import aiku.numericalcontroloa.Model.Entity.ProductPart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 马
* @description 针对表【product_part】的数据库操作Mapper
* @createDate 2024-03-07 11:35:41
* @Entity aiku.numericalcontroloa.Model.Entity.ProductPart
*/
@Mapper
public interface ProductPartMapper extends BaseMapper<ProductPart> {
    /**
     * 批量插入
     * @param productPartList 成品零件集合
     * @return
     */
    int insertBatch(@Param(value = "list")List<ProductPart> productPartList);

    /**
     * 根据devicesId删除
     * @param devicesId
     * @return
     */
    int deleteByDevicesId(@Param(value = "devicesId")String devicesId);
}




